package com.example.order.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mtl
 * 服务生产者 调用公共服务
 */
@RestController
@RequestMapping("/smart-auth-server")
public class CommonController {

    @Value("${server.port}")
    private int port;


    @PostMapping("/t1")
    public String test(Integer uid) {
        return "这里是订单服务中心"+port + (String.valueOf(uid));
    }

    @ResponseBody
    @PostMapping("/t2")
    public String test2(){
        return "测试二号接口 test2";
    }

    @PostMapping("/t3")
    String test3(){
        return "test3";
    }


}
